package com.dshore.messagecenter.controller.statistics;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.dshore.messagecenter.service.statistics.MemoryUsageService;
/**
 * 内存占用控制类
 * @author panyi
 */
@Controller
@RequestMapping("/memory")
public class MemoryUsageController {
	@Autowired
	private MemoryUsageService muService;
	
	/**
	 * 进入页面
	 * @return
	 */
	@RequestMapping("/memoryUsage")
	public String tomessageFlow() {
		return "statistics/memoryusage";
	}
	
	/**
	 * 获取各个主题队列的内存占用
	 * @version 8/27
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/getEveryTopicMemory")
	public List<List<Object>>getEveryTopicMemory() {
		List<List<Object>> list=muService.getEveryTopicMemory();
		return list;
	}
	
	
}
